package com.example.a313ldy.yuejian_17.service;

import android.telecom.Call;

import com.example.a313ldy.yuejian_17.bean.LoginInfo;
import com.example.a313ldy.yuejian_17.bean.RegisterInfo;
import com.example.a313ldy.yuejian_17.bean.UserPhoto;

import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.Query;

/**
 * Created by LDY on 2017/9/28.
 */

public interface UserService {
        @GET("Login/login/") //登录
        retrofit2.Call<LoginInfo> login(
                @Query("user_telphone") String user_telphone,
                @Query("user_password") String user_password
        );
        @GET("Register/register/") //注册
        retrofit2.Call<RegisterInfo> register(
                @Query("user_telphone") String user_telphone,
                @Query("user_name") String user_name,
                @Query("user_password") String user_password
        );

        @GET("UserInformation/userpic/") //登录页面获取用户头像
        retrofit2.Call<UserPhoto> userPhoto(
                @Query("user_telphone") String user_telphone
        );

        /*@GET("Trian/trainlist/") //
        retrofit2.Call<Train> trainlist(
                @Query("flag") int flag
        );*/

}

